package com.starter.home.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starter.home.domain.entity.User;
import com.starter.home.util.CommonParam;
import com.starter.home.util.PageUtil;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2020-04-29
 */
public interface IUserService extends IService<User> {

    /**
     * 登录
     * @param user
     */
    User toLogin(User user);

    /**
     * 更改状态
     * @param id
     * @param status
     */
    void changeStatus(Integer id, Boolean status);

    /**
     * 查找用户
     * @param commonParam
     * @return
     */
    PageUtil getUserList(CommonParam commonParam);

    /**
     * 删除用户
     * @param id
     */
    void deleteById(Integer id);
}
